<script type="text/javascript">
	$(document).ready(function(){
		$("#cart a.empty").live("click",function(){
			$(".removeok").remove();
			$.ajax({
				"url"   : "<?php echo base_url(); ?>home/cart/emptys",
				"type"  : "post",
				"data"  : "",
				"async" : false,
				success : function(result){
					$("#cart").load("<?php echo base_url(); ?>home/cart");
				}
			});
		});
	});
</script>
<span class="close">Close x</span>
	<p style="text-decoration:underline;margin-bottom:10px;font-weight:bold">Your cart</p>
	<ul>
   	<?php
	if($this->cart->total_items()){
	  	$i=1;
	  	foreach($this->cart->contents() as $item){
	  		echo "<li>".$item['name']."</li>";
	  		$i++;
	  	}
	}
	?>
    </ul>
    <a href="<?php echo base_url(); ?>your-cart#infocruise" class="book">Book now</a>
    <a href="<?php echo base_url(); ?>home/cart/emptycart" class="empty">Empty cart</a>
<?php
	echo "<pre>";
	print_r($this->cart->contents());
	echo "</pre>";
?>